# 指定编译器
CC = g++

# 指定编译选项
CFLAGS = -g -std=c++17 -I ./include

# 指定链接器选项
LDFLAGS = -luuid -lpthread

# 使用通配符指定源代码文件
SOURCES = $(wildcard ./src/*.cpp ./src/*.c ./src/*.o)

# 指定目标文件名
TARGET_NAME = my_program
TARGET_PATH = ./bin/
TARGET = $(TARGET_PATH)$(TARGET_NAME)

# 默认目标
all: $(TARGET)

$(TARGET): $(SOURCES)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@

clean:
	rm -f $(TARGET)
